docs: PageMeta에 example 명시해 Swagger 의미없는 샘플값 제거 - #218
Merged
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (1 files)
Reviewed by step-3.7-flash · Input: 72.8K · Output: 1.5K · Cached: 91.4K |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 내용
global.common.PageMeta의page/totalCount/totalPages에@Schema(description, example)추가배경
Swagger UI에서 페이지네이션 응답의
meta가{"page": 1073741824, "totalCount": 9007199254740991, "totalPages": 1073741824}처럼 의미 없는 값으로 표시되는 문제. 실제 응답 데이터가 아니라,int/long필드에example이 없으면 Swagger UI 내부 샘플러(openapi-sampler)가 채워 넣는 기본 placeholder(각각 2^30, 2^53-1)였다.검증
./gradlew spotlessApply→./gradlew compileJava→./gradlew test spotlessCheck모두 통과/v3/api-docs에서PageMeta스키마 확인 —page: 1,totalCount: 42,totalPages: 5로 정상 노출연결 이슈
Closes #217